/**
 * output package name
 */
package com.kingdee.eas.custom.hostelmgr.basedata;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class NeedRoomEnum extends IntEnum
{
    public static final int YES_VALUE = 1;
    public static final int NO_VALUE = 2;

    public static final NeedRoomEnum YES = new NeedRoomEnum("YES", YES_VALUE);
    public static final NeedRoomEnum NO = new NeedRoomEnum("NO", NO_VALUE);

    /**
     * construct function
     * @param integer needRoomEnum
     */
    private NeedRoomEnum(String name, int needRoomEnum)
    {
        super(name, needRoomEnum);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static NeedRoomEnum getEnum(String needRoomEnum)
    {
        return (NeedRoomEnum)getEnum(NeedRoomEnum.class, needRoomEnum);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static NeedRoomEnum getEnum(int needRoomEnum)
    {
        return (NeedRoomEnum)getEnum(NeedRoomEnum.class, needRoomEnum);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(NeedRoomEnum.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(NeedRoomEnum.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(NeedRoomEnum.class);
    }
}